package com.rockcent.mall.lib.repository;

import com.rockcent.common.domain.enumclass.Whether;
import com.rockcent.mall.lib.domain.CouponMerchantStore;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by zhangjh on 2016/10/18.
 */
@Repository
public interface CouponMerchantStoreRepository extends JpaRepository<CouponMerchantStore, Long>, JpaSpecificationExecutor {
    List<CouponMerchantStore> findByCouponIdAndIsDelete(Long id, Whether no);

    List<CouponMerchantStore> findByCouponId(Long couponId);
}
